﻿using DevExpress.Skins;
using GPM;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace LF3Proj
{
    static class Program
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main()
        {
            DevExpress.UserSkins.BonusSkins.Register();
            //DevExpress.UserSkins.OfficeSkins.Register();
            System.Threading.Thread.CurrentThread.CurrentUICulture = new System.Globalization.CultureInfo("zh-CN");
            string skin = AppSetter.GetConfigString("Skin");
            if (string.IsNullOrEmpty(skin))
                skin = "Office 2010 Blue";
            DevExpress.LookAndFeel.UserLookAndFeel.Default.SetSkinStyle(skin);
            SkinManager.EnableFormSkins();

            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            FrmLogin login = new FrmLogin();
            login.ShowDialog();
            if (login.LoginSuccess)
                Application.Run(new FrmMain());
        }
    }
}
